package com.gopay.common.domain.acps;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import java.util.Date;

/**
 * 记账日志表
 * Created by xuHui on 2017/07/28.
 */
@Entity
@Table(name="ACPS_ACCT_LOG")
public class AcpsAcctLog extends BaseEntity {
    /** 日志流水号 */
    @Id
    @SequenceGenerator( name = "ACPS_ACCT_LOG_SEQ_GENERATOR", sequenceName = "ACPS_ACCT_LOG_SEQ", allocationSize = 1 )
    @GeneratedValue( strategy = GenerationType.SEQUENCE, generator = "ACPS_ACCT_LOG_SEQ_GENERATOR" )
    @Column(name="ID")
    private Integer id;
    /** tcc uuid（transinfo+reqtoken） */
    @Column(name="REQ_TOKEN")
    private String reqToken;
    /** 订单号_记账点（唯一约束） */
    @Column(name="PACKAGE_ID")
    private String packageId;
    /** 国付宝订单号 */
    @Column(name="GOPAY_ORDER_ID")
    private String gopayOrderId;
    /** 创建时间 */
    @Column(name="CREATE_TS")
    private Date createTs;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getReqToken() {
        return reqToken;
    }

    public void setReqToken(String reqToken) {
        this.reqToken = reqToken;
    }

    public String getPackageId() {
        return packageId;
    }

    public void setPackageId(String packageId) {
        this.packageId = packageId;
    }

    public Date getCreateTs() {
        return createTs;
    }

    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }

    public String getGopayOrderId() {
        return gopayOrderId;
    }

    public void setGopayOrderId(String gopayOrderId) {
        this.gopayOrderId = gopayOrderId;
    }
}